package com.laicunba.pojo;

import java.math.BigDecimal;
import java.util.Date;

import org.springframework.stereotype.Component;

import com.laicunba.annotation.MyColumn;
import com.laicunba.annotation.MyTable;

@MyTable
@Component
public class RateIncrCouponDefDO extends BaseDO {
	private String name;
	private BigDecimal rate; // 加息额
	private int totalQuantity; // 数量
	@MyColumn(type = "int DEFAULT 0")
	private int usedQuantity;// 发行数量
	private Date beginTime;// 开始时间
	private Date endTime;// 开始时间

	@MyColumn(type = "int DEFAULT 0")
	private int validDay;// 有效天数

	private String summary;
	/*
	 * JSON格式 [ [条件1,条件2,条件3], [条件1,条件2] ] 外层条件是 OR关闭,里面条件是 And关系
	 */
	private String conditions; // 使用条件

	public String getName() {
		return name;
	}

	public BigDecimal getRate() {
		return rate;
	}

	public int getTotalQuantity() {
		return totalQuantity;
	}

	public int getUsedQuantity() {
		return usedQuantity;
	}

	public Date getBeginTime() {
		return beginTime;
	}

	public Date getEndTime() {
		return endTime;
	}

	public int getValidDay() {
		return validDay;
	}

	public String getSummary() {
		return summary;
	}

	public String getConditions() {
		return conditions;
	}

	public void setName(String name) {
		this.name = name;
	}

	public void setRate(BigDecimal rate) {
		this.rate = rate;
	}

	public void setTotalQuantity(int totalQuantity) {
		this.totalQuantity = totalQuantity;
	}

	public void setUsedQuantity(int usedQuantity) {
		this.usedQuantity = usedQuantity;
	}

	public void setBeginTime(Date beginTime) {
		this.beginTime = beginTime;
	}

	public void setEndTime(Date endTime) {
		this.endTime = endTime;
	}

	public void setValidDay(int validDay) {
		this.validDay = validDay;
	}

	public void setSummary(String summary) {
		this.summary = summary;
	}

	public void setConditions(String conditions) {
		this.conditions = conditions;
	}

}
